package stone;

import java.util.List;

import stone.ast.ASTLeaf;
import stone.ast.ASTList;
import stone.ast.ASTree;

public class BinaryExpr extends ASTList {
	public BinaryExpr(List<ASTree> c) { super(c); }
	public ASTree left() { return child(0); }
	public String operator() {
		return ((ASTLeaf) child(1)).token().getText();
	}
	public ASTree right() { return child(2); }
}
